import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 理论学习资料管理-分页查询
export function queryLlxxzlGlPageList(params){
  return axios({
        url: assessCheckApi.queryLlxxzlGlPageList,
        method:'get',
        params:{...params},
        url_1:'outside',
  })
}
// 其他党日活动-添加/修改
export function saveCxdrhd(data){
    return axios({
          url: assessCheckApi.saveCxdrhd,
          method:'post',
          data:data,
          url_1:'outside',
    })
}
// 他支部党日活动-提交
export function qtdrhdSubmit(data){
    return axios({
          url: assessCheckApi.qtdrhdSubmit,
          method:'post',
          data:data,
          url_1:'outside',
    })
}
// 学习资料-发布
export function releaseXXzl(params){
    return axios({
          url: assessCheckApi.releaseXXzl,
          method:'get',
          params:{...params},
          url_1:'outside',
    })
}
// 学习资料-下架
export function xjXxzl(params){
    return axios({
          url: assessCheckApi.xjXxzl,
          method:'get',
          params:{...params},
          url_1:'outside',
    })
}

export function partyXxzlsaveLjxczl(params){
    return axios({
      url: assessCheckApi.partyXxzlsaveLjxczl,
      method:'post',
      data:params,
      url_1:'outside'
    })
  }

  export function partyXxzldeleteXxzl(params){
      return axios({
        url: assessCheckApi.partyXxzldeleteXxzl,
        method:'delete' ,
        params:params,
        url_1:'outside'
      })
    }
    export function partyXxzlreleaseXXzl(params){
      return axios({
        url: assessCheckApi.partyXxzlreleaseXXzl,
        method:'get',
        params:params,
        url_1:'outside'
      })
    }
    export function partyXxzlxjXxzl(params){
      return axios({
        url: assessCheckApi.partyXxzlxjXxzl,
        method:'get',
        params:params,
        url_1:'outside'
      })
    }
    export function partyXxzlqueryXxzlFjList(params){

      return axios({
        url: assessCheckApi.partyXxzlqueryXxzlFjList,
        method:'get',
        params:params,
        url_1:'outside'
      })
    }

    export function partyXxzluploadFile(params){
      return axios({
        url: assessCheckApi.partyXxzluploadFile,
        method:'post',
        data:params,
        url_1:'outside'
      })
    }
    export function partyXxzldeleteFile(params){
      return axios({
        url: assessCheckApi.partyXxzldeleteFile,
        method:'delete' ,
        params:params,
        url_1:'outside'
      })
    }
    export function partyXxzldownFile(params){
      return axios({
        url: assessCheckApi.partyXxzldownFile,
        method:'get',
        params:params,
        url_1:'outside',
        responseType: 'arraybuffer'
      })
    }

